<template>
	<div class="record-item">
    <div class="left-container">
      <div class="box-container">
        <div class="box-tag">进行中</div>
        <div class="box-title">这里是课程的标题</div>
        <div class="box-time">2021-11-22 到期</div>
      </div>
<!-- 下面这段测试用 -->
        <div class="box-container">
        <div class="box-tag">进行中</div>
        <div class="box-title">这里是课程的标题</div>
        <div class="box-time">2021-11-22 到期</div>
      </div> <div class="box-container">
        <div class="box-tag">进行中</div>
        <div class="box-title">这里是课程的标题</div>
        <div class="box-time">2021-11-22 到期</div>
      </div> <div class="box-container">
        <div class="box-tag">进行中</div>
        <div class="box-title">这里是课程的标题</div>
        <div class="box-time">2021-11-22 到期</div>
      </div> <div class="box-container">
        <div class="box-tag">进行中</div>
        <div class="box-title">这里是课程的标题</div>
        <div class="box-time">2021-11-22 到期</div>
      </div> <div class="box-container">
        <div class="box-tag">进行中</div>
        <div class="box-title">这里是课程的标题</div>
        <div class="box-time">2021-11-22 到期</div>
      </div> <div class="box-container">
        <div class="box-tag">进行中</div>
        <div class="box-title">这里是课程的标题</div>
        <div class="box-time">2021-11-22 到期</div>
      </div> <div class="box-container">
        <div class="box-tag">进行中</div>
        <div class="box-title">这里是课程的标题</div>
        <div class="box-time">2021-11-22 到期</div>
      </div>
<!-- 上面这段测试用 -->
    </div>
    <div class="right-container">
      <div class="detail-title">
            这里是课程的标题
      </div>
      <div class="detail-header">
        <div class="detail-img">
          这里是图片
        </div>
        <div class="detail-content">
          <div class="detail-content-time">2021-11-22到期</div>
          <div class="detail-content-progress">这里放个学习进度条</div>
          <div class="detail-content-operate">这里放点赞收藏评论</div>
        </div>
      </div>
      <div class="character-container">
        <div class="character-sections">
          <h2>全部章节
            <span>
              （共0章）ps：这里后面改成动态数据
            </span>
          </h2>
        </div>
        <div class="character-item">
          <li class="character-title">这里是第一章的标题safbjgadsmhnasdnksadfnhkkasfhnkashnksdnkhnskadhnksdahnkas
          </li>
          <li class="character-title">这里是第一章的标题
          </li>
          <li class="character-title">这里是第一章的标题
          </li>
        </div>
      </div>
    </div>
	</div>
</template>

<script>
</script>

<style scoped="scoped">
	.record-item {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    box-sizing: border-box;
	}
  .left-container{
    display: flex;
    flex-direction: column;
    /* overflow: scroll; */
  }
  .box-container{
    display: flex;
    flex-direction: column;
    cursor: pointer;
    width: -webkit-calc(100% - 10px);
    width: calc(100% - 10px);
    height: 140px;
    background: #f8f8f8;
    padding: 24px 16px;
    box-sizing: border-box;
    border-bottom: 1px solid #eee;
    position: relative;
    min-width: 250px;
  }
  .box-container:hover{
    border:2px solid #FCFCFC;
    background-color:#CCCCCC;
  }
  .box-tag{
    font-size: 12px;
    padding: 2px 10px;
    color: #fff;
    border-radius: 0;
    position: absolute;
    right: 0;
    top: 0;
    background: #03d3bd;
  }
  .box-title{
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 34px;
  }
  .box-time{
    color: #777;
    line-height: 48px;
    font-size: 12px;
  }
  .right-container{
    padding: 10px;
    display: flex1;
    flex-direction: column;
  }
  .detail-title{
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
    word-break: break-word;
    word-wrap: break-word;
    font-weight: 500;
  }
  .detail-header{
    display: flex;
    padding-bottom: 20px;
    padding-top: 10px;
    border-bottom: 1px solid #f5f5f5;
  }
  .detail-img{
    width: 200px;
    height: 120px;
  }
  .detail-content{
    display: flex;
    flex-direction: column;
    padding-left: 15px;
    width: -webkit-calc(100% - 210px);
    width: calc(100% - 210px);
  }
  .detail-content-time{
    position: relative;
    line-height: 40px;
    display: inline-block;
    box-sizing: content-box;
  }
  .detail-content-progress{
    line-height: 40px;
  }
  .detail-content-operate{
    margin-top: 4px;
    line-height: 40px;
  }
  .character-container{
    display: block;
  }
  .character-sections{
    margin: 0;
    padding: 12px;
  }
  .character-item{
    display: block;
  }
  .character-title{
    list-style: none;
    vertical-align: middle;
    padding-left: 2%;
    padding-top:3% ;
    margin:8px 0;
    overflow: hidden;
  }
</style>
